package com.yuma.cloud.order.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@Data
@RefreshScope(proxyMode = ScopedProxyMode.NO)
//@ConfigurationProperties(prefix = "user")
public class NacosConfigValue{

    @Value("${user.username}")
    private String username;

    @Value("${user.password}")
    private String password;

    @Value("${user.age}")
    private Integer age;
}
